package pers.cyw.oraclejavaproject.testmainclasses;

import pers.cyw.oraclejavaproject.domain.User;
import pers.cyw.oraclejavaproject.util.DBDo;

import java.util.List;

public class MainTest {
//    MainTestClass
    public static void main(String[] args) {
        List<User> list = DBDo.queryAll();
        List<User> list2 = DBDo.queryLike("name");
        System.out.println("list1");
        if(list.size()>0){
            for (User u :list){
                System.out.println(u);
            }
        }
        System.out.println("list2");
        if(list2.size()>0){
            for (User u :list2){
                System.out.println(u);
            }
        }
    }
}
